namespace TradeFlow.Server.Dto;

public class JxGoodsParam : PageParam
{
    /// <summary>
    /// 商品编码
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 商品类别
    /// </summary>
    public string Category { get; set; }

    /// <summary>
    /// 规格型号
    /// </summary>
    public string Model { get; set; }
}

public class JxGoodsPageParam : JxGoodsParam
{
    private int _currentPage;
    /// <summary>
    /// 当前页码
    /// </summary>
    public int CurrentPage
    {
        get { return _currentPage; }
        set
        {   
            _currentPage = value;
            base.PageNo = value;
        }
    }
}